/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - Demo</p>
 * <p>Powered by webrx On 2023-07-28 09:23:04</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */


public class Demo {
    public static void main(String[] args) {
        //Student s = new Student();
        //s.show();
        //
        //s.print();
        //
        //Date d = new Date();
        //int yy = d.getYear();
        //
        //int isdsfsdf = 3;

        //User u = new User();

        //Class<User> c = User.class;
        //Ann ann = c.getAnnotation(Ann.class);
        //System.out.println(ann.age());
        //System.out.println(ann.name());
        //System.out.println(ann.gender());
        //System.out.println(Arrays.toString(ann.address()));


        Movie a = new AMovie("动作片");
        Movie b = new BMovie("恐怖片");

        ProxyMovie pm = new ProxyMovie(a);
        pm.play();

        pm = new ProxyMovie(b);
        pm.play();


    }
}
